package org.starsource.forum.server.dao;

import java.util.Set;

import org.starsource.forum.client.exception.CategoryNotFoundException;
import org.starsource.forum.client.exception.DatabaseException;
import org.starsource.forum.server.domain.Category;

/**
 * @author james
 * 
 */
public interface CategoryDao {
	public void save(Category category) throws DatabaseException;
	public void update(Category category) throws DatabaseException;
	public void delete(Category category) throws DatabaseException;

	public Category getCategory(int id) throws CategoryNotFoundException, DatabaseException;
	public Set<Category> getCategorySet() throws DatabaseException;
	public Set<Category> getCategorySet(Category parent) throws DatabaseException;
}
